import Vue from 'vue'
import Vuex from 'vuex'
import { addCrat } from "./addCrat"
import { cartLength, cartList } from "./cartList"
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    cartList: []
  },
  mutations: {
  },

  actions: {
    addCrat //购物车数据总线模块
  },
  modules: {
  },
  getters: {
    cartLength,//计算cartList的长度
    cartList //获取cartList的数据
  }
})
